{% extends "forms/form_template.html" %}

{% import '/forms/form_macro.html' as form_template %}


{% block ext_scripts %}
    <script>
        {% if not form.total.data %}
            $('input[name=total]').parent().parent().hide()
        {% endif %}
    </script>

{% endblock %}

{% block form_title %}
    <div class="row" style="text-align: center">
        <a href="/flow/flow_chart/{{ flow.fid }} " target="_blank"><h3>{{ flow.name }} </h3></a>
        {% if work_table %}
            <p>
                <span> {{ work_table.pr_no }}</span>
            </p>
        {% endif %}


        <p>
            <span> 提交人: {{ submitter.account }}({{ submitter.name }})</span>
        </p>
    </div>
{% endblock %}

{% block form_body %}
    {{ form_template.quick_form(form,form_type='horizontal',horizontal_columns=('lg', 2, 8),has_submit=has_submit) }}

{% endblock %}


